cmake_minimum_required(VERSION 3.15)
project(test1)

set(CMAKE_CXX_STANDARD 14)
find_package(OpenCV 3 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(test1 main.cpp)
target_link_libraries(test1  ${OpenCV_LIBS})